package objects;

public final class AdapletConstants
{
	public enum ColumnType {
		INT, REAL, STRING, DATE, LONG, RAW, LARGESTRING
	}

	public static final String sNewLine = System.getProperty("line.separator");

	public static final String convertTypeToString(ColumnType typeForColumn)
	{
		switch (typeForColumn)
		{
		case INT:
			return "int";
		case REAL:
			return "real";
		case STRING:
			return "string";
		case DATE:
			return "date";
		case LONG:
			return "long";
		case RAW:
			return "raw";
		case LARGESTRING:
			return "largestring";
		default:
			return "";
		}
	}

	public static final String commentizeString(String text)
	{
		return text.replaceAll("^", "#").replaceAll(sNewLine, sNewLine + "#");
	}
}
